<#compress>
    <#assign actionname>${(action=='create')?string('新建','编辑')}</#assign>
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
    <h4 class="modal-title">${actionname} 市别</h4>
</div>
<div class="modal-body">
    <div class="row">
        <div class="col-md-12">
            <form class="form-horizontal" role="form">
                <input type="hidden" value="${diningMarket.brand!}" name="diningMarket.brand">
                <input type="hidden" value="${diningMarket.id!}" name="diningMarket.id">
                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-3 control-label">市别名称：</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" name="diningMarket.name" value="${diningMarket.name!}" placeholder="市别名称">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="begin_time">开始时间：</label>
                        <div class="col-md-9">
                            <div class="input-group date form_datetime input-medium">
                                <input type="text" size="16" readonly id="begin_time"  value="${diningMarket.begin_time?string('yyyy-MM-dd HH:mm:dd')}" name="begin_time" class="form-control">
                                <span class="input-group-btn">
                                    <button class="btn default date-set" type="button"><i class="fa fa-calendar"></i></button>
                                </span>
                            </div>

                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="end_time">结束时间：</label>
                        <div class="col-md-9">
                            <div class="input-group date form_datetime input-medium">
                                <input type="text" size="16" id="end_time"  value="${diningMarket.end_time?string('yyyy-MM-dd HH:mm:dd')}" readonly name="end_time"  class="form-control">
                                <span class="input-group-btn">
                                    <button class="btn default date-set" type="button"><i class="fa fa-calendar"></i></button>
                                </span>
                            </div>

                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="remark">&nbsp;</label>
                        <div class="col-md-9">
                            <label for="status"><input type="checkbox" name="status" id="status" <#if diningMarket.status?? && (diningMarket.status == 1)>checked="checked" </#if>> 启用</label>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="modal-footer">
    <button type="button" class="btn blue" id="save">保存</button>
    <button type="button" class="btn default" data-dismiss="modal">取消</button>
</div>
</#compress>